package com.starbaba.system.userauthority.service;

import java.util.List;

import com.starbaba.system.menu.model.MenuVO;
import com.starbaba.system.user.model.UserVO;
@SuppressWarnings("rawtypes")
public interface AuthService {
	public String login(String opercode, String password, String vcode, String autologin) throws Exception;

	public String logout(Object operator);

	public UserVO getOperator();

	public List<MenuVO> queryTopMenu(UserVO userVO, List groupids, String type, String from);

	public List<MenuVO> querySecondChildMenu(UserVO userVO, String menuId, List groupids, String type, String from);

	public List<MenuVO> queryThirdChildMenu(UserVO userVO, String menuId, List groupids, String type, String from);

	// 查询所有的菜单
	public List<MenuVO> querySecondChildMenuAll(UserVO userVO, String menuId);

	public List<MenuVO> queryThirdChildMenuAll(UserVO userVO, String menuId);

	public List<MenuVO> queryTopMenuAll(UserVO userVO);

	public void delUserMenuList(List menuList, String groupid);

	public void addUserMenuList(List menuList, String groupid, String creator);

	// 一次查询所有菜单
	public int MaxMenuType(List<MenuVO> list);

	public List<MenuVO> queryMenuAll();

	public List<MenuVO> queryMenuByGroupids(List<Long> gourpIdList);
}
